//
//  BSKeyRef.m
//  Spriter_forCocs2d
//
//  Created by Yang Bean on 13/4/18.
//
//

#import "BSKeyRef.h"

@implementation BSKeyRef
@synthesize bonRefeArray = m_boneRefArray;
@synthesize objRefArray = m_objRefArray;
- (id)initWithKeyId:(int)keyId time:(int)time
{
    self = [super init];
    if (self) {
        m_keyID = keyId;
        m_time = time;
    }
    return self;
}
- (void)dealloc
{
    [m_objRefArray release];
    [m_boneRefArray release];
    NSLog(@"dealloc   BSkeyRef");
    [super dealloc];
}
- (int)keyId
{
    return m_keyID;
}
- (int)time
{
    return m_time;
}
- (NSString *)description
{
    
    return [NSString stringWithFormat:@"key id = %d, time = %d , objRef = %@, boneRef = %@",
            m_keyID, m_time, m_objRefArray, m_boneRefArray];
}
@end
